package com.leyou.common.constants;

/**
 * Created by IntelliJ IDEA.
 *
 * @author: wangzibeng
 * Date: 2019/5/12 0012
 * Time: 9:50
 */

public class MQConstants {
    /**
     * 商品服务交换机名
     */
    public static final class Exchange {
        public static final String ITEM_EXCHANGE_NAME = "ly.item.exchange";
        public static final String SMS_EXCHANGE_NAME = "ly.sms.exchange";
    }

    /**
     * routing-key
     */
    public static final class RoutingKey {
        /**
         * 上架的routing-key
         */
        public static final String ITEM_UP_KEY = "item.up";
        /**
         * 下架的routing-key
         */
        public static final String ITEM_DOWN_KEY = "item.down";
        /**
         * 短信验证
         */
        public static final String VERIFY_CODE_KEY = "sms.verify.code";
    }

    public static final class Queue {
        /**
         * 搜索服务，商品上架的队列
         */
        public static final String SEARCH_ITEM_UP = "search.item.up.queue";
        /**
         * 搜索服务，商品下架的队列
         */
        public static final String SEARCH_ITEM_DOWN = "search.item.down.queue";

        /**
         * 静态页面服务，商品上架的队列
         */
        public static final String PAGE_ITEM_UP = "page.item.up.queue";
        /**
         * 静态页面服务，商品下架的队列
         */
        public static final String PAGE_ITEM_DOWN = "page.item.down.queue";
        /**
         * 短信验证队列
         */
        public static final String SMS_VERIFY_CODE_QUEUE = "sms.verify.code.queue";
    }
}
